<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />
        <link rel="shortcut icon" type="image/x-icon" href="<?php echo Yii::app()->request->baseUrl; ?>/images/favicon.ico" />
	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
    
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
    <!--script type="text/javascript" src="http://fast.fonts.com/jsapi/58d65bd9-1b2c-4dc0-bb13-4d91030dc1ce.js"></script-->
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="container" id="page">
        <div id="logo"><a href="http://www.woscreative.com"><img src="/images/logo.png" /></a></div>
	<div id="header">
                <div class="title red20">
                    Creative<br/>
                    Consultancy
                </div>
                <div class="info_menus">
                    <div class="info">
                        <div class="shop_box">
                            <a href="<?php echo Yii::app()->createUrl('shop/index'); ?>" class="grey20<?php if($this->id=='shop'){echo ' active';} ?>">Visit Our Shop</a>
                        </div>
                        <div class="search_box">
                            <form action="<?php echo Yii::app()->createUrl('/site/search'); ?>" method="get">
                                <input type="text" id="search_input" name="q" /><input type="image" id="search_btn" src="<?php echo Yii::app()->baseUrl.'/images/search_btn.png'; ?>" />
                            </form>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div id="mainmenus">
                        <div class="menus">
                            <?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				//array('label'=>'- Home', 'url'=>Yii::app()->baseUrl,'active'=>$this->id=='site'?true:false),
				array('label'=>'Artists', 'url'=>array('/artist'),'active'=>$this->id=='site'||($this->action->id!='event'&&$this->id=='artist')&&(!isset($this->artistCategory)||$this->artistCategory!=6)?true:false),
                                array('label'=>'Projects', 'url'=>array('/projects'),'active'=>$this->id=='site'||$this->action->id=='event'||(isset($this->artistCategory)&&$this->artistCategory==6)?true:false),
			),
                        'encodeLabel'=>false,
		)); ?>
                        </div>
                        <div class="menus menus2" style="float: right;">
                            <?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'Blog', 'url'=>array('blog/index')),
                                array('label'=>'About', 'url'=>array('siteinfo/about')),
				array('label'=>'Contact', 'url'=>array('siteinfo/contact')),
			),'encodeLabel'=>false,
		)); ?>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
	</div><!-- header -->

	<?php $this->widget('zii.widgets.CBreadcrumbs', array(
		'links'=>$this->breadcrumbs,
	)); ?><!-- breadcrumbs -->

	<?php echo $content; ?>
        <div class="clear"></div>
	<div id="footer">
            <div class="addr">
				Ann Xiao<br/>
				+44 (0) 77 2392 5788<br/>
                <a href="mailto:ann@wideopenspaceuk.com">Email</a>
            </div>
            <div class="addr">29 Windsor Avenue,
London E17 5NL</div>
            <div class="title">Wide Open Space</div>
	</div><!-- footer -->

</div><!-- page -->
<div class="admin_control">
    <?php
    if(!Yii::app()->user->isGuest){
    $this->menu=array(
        array('label'=>'Create Artists Category', 'url'=>array('/artistCategory/create')),
        array('label'=>'Manage Artists Category', 'url'=>array('/artistCategory/admin')),
	array('label'=>'Create Artists', 'url'=>array('/artist/create')),
        array('label'=>'Manage Artists', 'url'=>array('/artist/admin')),
        array('label'=>'------------------------------------'),
	array('label'=>'Create Projects', 'url'=>array('/artistProject/create')),
	array('label'=>'Manage Projects', 'url'=>array('/artistProject/admin')),
        array('label'=>'------------------------------------'),
        array('label'=>'Create Shop item', 'url'=>array('/shop/create')),
        array('label'=>'Manage Shop items', 'url'=>array('/shop/admin')),
	array('label'=>'Create Shop Category', 'url'=>array('/shopCategory/create')),
        array('label'=>'Manage Shop Category', 'url'=>array('/shopCategory/admin')),
        array('label'=>'------------------------------------'),
        array('label'=>'Create Blog', 'url'=>array('/blog/create')),
        array('label'=>'Manage Blog', 'url'=>array('/blog/admin')),
	array('label'=>'Create Blog Category', 'url'=>array('/blogCategory/create')),
        array('label'=>'Manage Blog Category', 'url'=>array('/blogCategory/admin')),
        array('label'=>'------------------------------------'),
        array('label'=>'Update Site Info', 'url'=>array('/siteinfo/update', 'id'=>'1')),
        array('label'=>'Change Password', 'url'=>array('/site/change')),
        array('label'=>'Logout', 'url'=>array('/site/logout')),
    );
    $this->beginWidget('zii.widgets.CPortlet', array(
            'title'=>'Operations',
    ));
    $this->widget('zii.widgets.CMenu', array(
            'items'=>$this->menu,
            'htmlOptions'=>array('class'=>'operations'),
    ));
    $this->endWidget();
    }
    ?>
</div>
</body>
</html>